package edu.hz.eduservice;


import edu.hz.apiservice.api.UserServiceApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class StudentController {

    @Resource
    UserServiceApi userServiceApi;



    @GetMapping("/student/select-course")
    public String selectCourse(){

        String username = userServiceApi.user();
        return username + "select a course: 《微服务开发》";
    }

}
